package com.maoxx.stuchoosemssbv_service.mapper;

import com.maoxx.stuchoosemssbv_service.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherMapper {
    Teacher findById(Integer tid);

    List<Teacher> findAll();

    boolean updateById(@Param("teacher") Teacher teacher);

    boolean save(@Param("teacher") Teacher teacher);

    boolean removeById(@Param("tid") Integer tid);
}
